home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2006 June / PCpro_2006_06.ISO / files / freeware / openvip.exe / {app} / Lib / FCNTL.py < prev    next >
Encoding:
Python Source  |  2001-05-09  |  418 b   |  15 lines

  1. """Backward-compatibility version of FCNTL; export constants exported by
  2. fcntl, and issue a deprecation warning.
  3. """
  4.  
  5. import warnings
  6. warnings.warn("the FCNTL module is deprecated; please use fcntl",
  7.               DeprecationWarning)
  8.  
  9.  
  10. # Export the constants known to the fcntl module:
  11. from fcntl import *
  12.  
  13. # and *only* the constants:
  14. __all__ = [s for s in dir() if s[0] in "ABCDEFGHIJKLMNOPQRSTUVWXYZ"]
  15.